package core

import (
	partner "gitee.com/binny_w/gin-partner"
	"go.uber.org/zap"
)

var Ip2region *partner.IP2Region

func ip2regionInit() {
	var err error
	Ip2region, err = partner.NewIP2Region(Config.GetString("ip2region-db"))
	if err != nil {
		Logger.Panic("ip2region init err:", zap.Error(err))
	}
}
